knights = {'gallahad': 'Gallah', 'knight': 'Knight'}
for k,v in knights.items():
    print(k, v)
for i,v in enumerate(['tic' , 'tac','toe']):
    print(i, v)
questions=['name' , 'quest' , 'favorite color']
answers=['lancelot' , 'teepee' , 'blue']
for q,a in zip(questions,answers):
    print('what is your {0}? It is {1}.'.format(q,a))
for i in reversed(range(1,10,2)):
    print(i)
basket=['apple','orange','pear','orange','apple','pear']
for i in sorted(basket):
    print(i)
print("~~"*38)

for i in sorted(set(basket)):
    print(i)

string1,string2,string3='' , 'trondheim ', 'blue'
non_null = string1 or string2 or string3
print(non_null)

print((1,2,3) < (1,2,4))
print([1,2,3] < [1,2,4])
print('ABC' <'C' <'Pascal'<'Python')
print((1,2,3,4)<(1,2,3))
